#include "../include/regs.h"

qword iregs[128];
real4 fregs[64];
real8 dregs[64];

template <class T>
void setValue(T value, byte reg)
{
	if (reg < 0x80)
		iregs[reg & 0x7f] = value;
	else if (reg < 0xc0)
		iregs[reg & 0x3f] = value;
	else
		iregs[reg & 0x3f] = value;
}